/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entidad;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author Sebastian
 */
@Entity
public class CambiosPrestacion implements Serializable {
    public List<Prestacion> getCambios() {
        return cambios;
    }

    public void setCambios(List<Prestacion> cambios) {
        this.cambios = cambios;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @OneToMany(mappedBy="cambiosPrestacion")
    private List<Prestacion> cambios = new ArrayList<Prestacion>();
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;


}
